{template "header.html", "/"}

<div class="page-container">
    <div class="page-content-wrapper">

        <div class="page-content">
            <div class="container">

                <ul class="page-breadcrumb breadcrumb">
                    <li><a href="{SITE_URL}">首页</a><i class="fa fa-angle-right"></i></li>
                    {if defined('IS_SHARE') && !IS_SHARE}
                    <li><a href="{MODULE_URL}">{MODULE_NAME}</a><i class="fa fa-angle-right"></i></li>
                    {/if}
                    {dr_catpos($catid, '', 1, '<li><a href="{url}">{name}</a><i class="fa fa-angle-right"></i></li>'.PHP_EOL)}
                    <li> <span>正文</span></li>
                </ul>


                <div class="news-content row">

                    <div class="col-md-8">
                        <div class="news-body">
                            <h4 class="title text-center">{$title}</h4>
                            <div class="title-btn text-center">
                                <label>
                                    <i class="fa fa-user"></i> {$author}
                                </label>
                                <label>
                                    <i class="fa fa-calendar"></i> {$updatetime}
                                </label>
                                <label>
                                    <i class="fa fa-eye"></i> {dr_show_hits($id)}次
                                </label>
                                <label class="">
                                    <i class="fa fa-comments"></i> {$comments}
                                </label>
                            </div>

                            <div class="news-summary">
                                <ul class="list-unstyled fc-list-row">
                                    <li><strong> 行业类型：</strong> {$cat.name}</li>
                                    <li><strong> 招聘人数：</strong> {$zprs}人</li>
                                    <li><strong> 学历要求：</strong>{php $field = dr_field_options('xueliyaoqiu');}{$field[$xueliyaoqiu]}</li>
                                    <li><strong> 工作年限：</strong> {$gznx}年</li>
                                    <li><strong> 每月薪资：</strong> {php $field = dr_field_options('meiyuexinzi');}{$field[$meiyuexinzi]}</li>
                                </ul>
                            </div>

                            <div class="job-btn">
                                <a href="javascript:dr_module_favorite('{MOD_DIR}', '{$id}', 0);" class="btn btn-circle default">加入收藏</a>
                                <a href="javascript:dr_toudi();" class="btn btn-circle default">投递简历</a>
                                <script language="javascript">
                                    function dr_toudi() {

                                        layer.open({
                                            type: 2,
                                            title: '投递简历',
                                            fix:true,
                                            scrollbar: false,
                                            shadeClose: true,
                                            shade: 0,
                                            area: ['500px', '300px'],
                                            btn: ['确认'],
                                            yes: function(index, layero){

                                                var body = layer.getChildFrame('body', index);
                                                $.ajax({type: "POST",dataType:"json", url: '/index.php?s={MOD_DIR}&c=api&m=toudi_jianli&id={$id}&is_ajax=1', data: $(body).find('#myform').serialize(),
                                                    success: function(json) {
                                                        if (json.code == 1) {
                                                            dr_tips(json.msg,3,1);
                                                        } else {
                                                            dr_tips(json.msg);
                                                        }
                                                        return false;
                                                    },
                                                    error: function(HttpRequest, ajaxOptions, thrownError) {
                                                        alert(HttpRequest.responseText);
                                                    }
                                                });
                                                return false;
                                            },
                                            content: '/index.php?s={MOD_DIR}&c=api&m=toudi&id={$id}&is_ajax=1'
                                        });
                                    }
                                </script>
                            </div>

                            <div class="news-content">
                                {$content}
                            </div>
                            <div class="news-keyword">
                                <div class="news-keyword-tags">
                                    {loop $keyword_list $name $url}
                                    <label>
                                        <a href="{$url}" target="_blank">{$name}</a>
                                    </label>
                                    {/loop}
                                </div>
                                <div class="news-next-prev">
                                    <p><strong>上一篇：</strong>{if $prev_page}<a href="{$prev_page.url}">{$prev_page.title}</a>{else}没有了{/if}</p>
                                    <p><strong>下一篇：</strong>{if $next_page}<a href="{$next_page.url}">{$next_page.title}</a>{else}没有了{/if}</p>
                                </div>
                            </div>
                        </div>
                        <div class="news-comments-top">
                            <h4>网友留言评论</h4>
                            <div class="count"><span class="num">{$comments}</span>条评论</div>
                        </div>
                        <div class="news-comments-body">
                            {dr_module_comment(MOD_DIR, $id)}
                        </div>
                    </div>

                    <div class="col-md-4">
                        <div class="news-hits-body">
                            <div class="ctitle">联系方式</div>
                            <div class="job-lx">
                                <p>联系人: {$lianxiren}</p>
                                <p>联系电话: {$lxdh}</p>
                                <p>工作地区: {dr_linkagepos('address', $gongzuodiqu, ' - ')}</p>
                                <p>详细街道: {$xxjd}</p>
                            </div>
                            <div class="job-lx">
                                {dr_baidu_map($ditubiaozhu, 17, '100%', '200', '百度地图KEY，自己申请')}
                            </div>
                        </div>
                        <div class="news-hits-body">
                            <div class="ctitle">相关职位</div>
                            <ul class="news">
                                <!--此标签用于调用相关文章，tag=关键词1,关键词2，多个关键词,分隔，num=显示条数，field=显示字段-->
                                {related field=title,url catid=$catid tag=$tag num=10}
                                <li><a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 24)}</a></li>
                                {/related}
                            </ul>
                        </div>

                        <div class="news-hits-body">
                            <div class="ctitle">最新职位</div>
                            <ul class="news">
                                {module field=title,url catid=$catid num=10}
                                <li><a href="{$t.url}" title="{$t.title}">{dr_strcut($t.title, 20)}</a></li>
                                {/module}
                            </ul>
                        </div>
                    </div>


                </div>

            </div>
        </div>

    </div>

</div>


{template "footer.html", "/"}